import * as req from '@/request';

export async function list(
  params: { [key: string]: any },
  sorter?: { [key: string]: any },
  filter?: { [key: string]: any },
) {
  return req.postForm<API.ProductParamList>(
    '/productparam/list',
    params,
    sorter,
    filter,
  );
}

export async function update(data: { [key: string]: any }) {
  return req.postForm<API.Result>('/productparam/update', data);
}
